package com.springIOC.Aspect;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;

/**
 * Created by 41579 on 2017/1/7.
 */
@Aspect
public class MyAspectj2 {
    //继承 @within @target @annotation @args args  this target within execution


    @Pointcut("com.springIOC.Aspect.MyAspectj1.signature2()||execution(public void com.springIOC..*.test3())")
    public void signature3(){};

    @Pointcut("@annotation(com.springIOC.Annotation.WithinAnnotation)")
    public void signature4(){};

    /*@Before("signature3()")
    public void before(){
        System.out.println("Aspectj2 before....");
    }*/

    @Before("signature4()")
    public void before2(){
        System.out.println("Aspectj2 before annotation....");
    }
}
